# 手动执行
# 如果是在docker容器内，可以去除sudo
sudo apt update
sudo apt install zsh wget git -y
wget https://gitee.com/matthew1757405148/my_scripts/raw/master/install_zsh/install.sh
chmod +x install.sh
./install.sh

export ZSH_CUSTOM=$ZSH_CUSTOM
git clone https://gitee.com/hailin_cool/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://gitee.com/Annihilater/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
# 修改zsh配置
sed -i 's/plugins=(git)/plugins=(git zsh-syntax-highlighting zsh-autosuggestions)/g' ~/.zshrc
sed -i 's/ZSH_THEME="[^"]*"/ZSH_THEME="ys"/g' ~/.zshrc
# 下面这一主题需要提前安装
# git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
# sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="powerlevel10k\/powerlevel10k"/g' ~/.zshrc
source ~/.zshrc
